home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
sos3-2.lha
/
src
/
init
/
init_main.c
Wrap
C/C++ Source or Header
|
1992-01-23
|
1KB
|
39 lines
/* --------------------------------------------------------------------------
* Copyright 1992 by Forschungszentrum Informatik (FZI)
*
* You can use and distribute this software under the terms of the licence
* you should have received along with this program.
* If not or if you want additional information, write to
* Forschungszentrum Informatik, "STONE", Haid-und-Neu-Strasse 10-14,
* D-7500 Karlsruhe 1, Germany.
* --------------------------------------------------------------------------
*/
// SOS root container initialization facility (init)
#include "sys.h"
#include "smg.h"
#include "sos.h"
#include "dir_use.h"
#ifdef PROFILE
extern "C" void monitor(...);
#endif
main (int argc, char *argv[])
{
sos_init (argc, argv);
sos_Directory dir;
sos_String name = smg_String ("root").make_String (TEMP_CONTAINER);
ROOT_CONTAINER.open (WRITING, WAITING);
dir = sos_Object_Directory::create (ROOT_CONTAINER, name);
ROOT_CONTAINER.close() ;
#ifdef PROFILE
monitor (0);
#endif
exit (0);
}